package com.gxa.autoparts.portal.common;

import com.gxa.autoparts.core.common.GoodsVo;
import com.gxa.autoparts.core.pojo.Goods;

/**
 * @author ：looker
 * @date ：Created in 2022/1/8 17:37
 * Goods与GoodsVo转换
 */
public class GoodsTurn {

    public static GoodsVo goodsToVo(Goods goods){
        GoodsVo goodsVo = new GoodsVo(goods.getId(),goods.getName(),goods.getTypeId(),goods.getState(),goods.getImg(),goods.getDetail(),goods.getUpdateTime(),goods.getSalePrice(),goods.getRemarkPrice(),goods.getSaleCount());
        return goodsVo;
    }
}
